import 'package:json_annotation/json_annotation.dart';

part 'ArticleItem.g.dart';

/// **************************************************************************
/// 文章 Item的数据
/// **************************************************************************

@JsonSerializable()
class ArticleItem {
  ///表示正常item数据
  static const int NROMAL = 0;

  //表示最后的数据
  static const int END = 1;

  String author;

  String niceDate;

  int id;

  String superChapterName;

  String title;

  String link;

  bool collect = true;

  String chapterName;

  int type = NROMAL;

  ArticleItem();

  factory ArticleItem.fromJson(Map<String, dynamic> json) =>
      _$ArticleItemFromJson(json);

  Map<String, dynamic> toJson() => _$ArticleItemToJson(this);
}
